package com.ctosb.classviewer.clazz.attr;

import com.ctosb.classviewer.ClassReader;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class RuntimeVisibleParameterAnnotations_attribute extends Attribute_info {

    private byte num_parameters;
    Parameter_annotation parameter_annotations[];

    @Override
    public void doParse(ClassReader classReader) {
        num_parameters = classReader.readByte();
        parameter_annotations = new Parameter_annotation[num_parameters & 0xffff];
        for (int i = 0; i < parameter_annotations.length; i++) {
            parameter_annotations[i] = new Parameter_annotation().parse(classReader, getClassFile());
        }
    }
}
